public class ClientClass {
    public static void main(String[] args) {
        Factory factory = new Factory();

        // 原始对象
        Fruit realApple = factory.CreateFruit("A");

        // 静态代理使用
        Fruit staticProxy = new FruitStaticProxy(realApple);
        staticProxy.eat();
    }
}